package com.hbx.dto.menu;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/*
 * @Author:hbx
 *
 * */
@Data
public class UpdateDto {

    private Integer id;

    @NotNull(message = "父菜单不能为空")
    private Integer parentId;

    @NotBlank(message = "菜单标题不能为空")
    private String title;

    private String href;

    private Integer spread;

    @NotBlank(message = "分级不能为空")
    private String target;

    private String icon;

    private Integer isUser;

    @NotNull(message = "是否可利用不能为空")
    private Integer available;
}
